//版心宽度
$cententWidth:1240px;

//***** 头部轮播图 + 二级导航 *****//
.MZ_header {
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
    // margin: 0 auto;

    //轮播图
    .wrapAll {
        // width: 100%;
        width: 2560px;
        height: 680px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        overflow: hidden;

        .slideBar {
            //父元素的宽度 === 所有子元素的宽度之和
            width: 500%;
            height: 680px;
            position: absolute;
            left: 0;
            top: 0;

            li {
                //因为百分比是相对于父级,要注意换算
                width: 20%;
                height: 680px;
                float: left;
                position: relative;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .dotList {
            position: absolute;
            right: 50%;
            bottom: 20px;
            margin-right: -60px;
            display: flex;

            li {
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: #fff;
                margin: 5px;
                box-sizing: border-box;
                // &:hover {
                //     border: 1px solid #fff;
                //     background: none;
                // }
            }

            .active {
                border: 1px solid #fff;
                background: none;
            }
        }
    }

    //导航
    .nav {
        width: 100%;
        // height: 225px;
        height: 80px;
        position: absolute;
        left: 0;
        top: 0;
        // border-bottom: 1px solid #e9e9e9;
        // background-color:greenyellow;
        box-sizing: border-box;

        //一级导航栏
        .header_nav {
            width: $cententWidth;
            height: 80px;
            // background-color: brown;
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;

            .log {
                width: 125px;
                height: 24px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .navul {
                margin-left: 47px;
                margin-right: 20px;
                // background-color: brown;

                // &:hover a {
                //     color: #333;
                // }

                li {
                    float: left;
                    // background-color: aqua;
                    // margin-right: 15px;


                    a {
                        font-weight: 500;
                        // line-height: 21px;
                        font-size: 14px;
                        // color: #fff;
                        color: #333;
                        padding: 31px 17px 30px;

                        &:hover {
                            color: #008cff;
                        }
                    }
                }

            }

            .inputBox {
                width: 170px;
                height: 30px;
                display: flex;
                line-height: 29px;
                font-size: 12px;
                background: #fff;
                border-radius: 20px;
                border: 1px solid #999;
                box-sizing: border-box;

                input {
                    border: none;
                    outline: 0;
                    width: 127px;
                    height: 20px;
                    margin-left: 15px;
                    margin-top: 5px;
                    font-size: 12px;
                    line-height: 20px;
                    color: #333;
                }

                .icon-sousuo {
                    line-height: 29px;
                    font-size: 12px;
                    cursor: pointer;
                }
            }

            .user {
                margin-left: 30px;
                position: relative;

                // &:hover .u_box {
                //     display: block;
                // }

                .u_box {
                    // display: none;
                    z-index: 999;
                    width: 98px;
                    border-radius: 2px;
                    background-color: #fff;
                    position: absolute;
                    left: 50%;
                    margin-left: -48px;
                    top: 35px;
                    z-index: 1;
                    box-shadow: 0 0 5px rgba($color: gray, $alpha: 0.4);

                    .meizu-header-user-dropdown:after {
                        display: block;
                        content: "";
                        width: 0;
                        height: 0;
                        border: 10px solid;
                        border-color: transparent transparent #fff;
                        left: 40px;
                        top: -15px;
                        position: absolute;
                    }

                    ul {

                        li {
                            text-align: center;

                            // display: block;
                            margin: 15px auto;

                            a {
                                font-size: 12px;
                                color: #515151;

                                &:hover {
                                    color: #008cff;
                                }
                            }
                        }
                    }
                }

                .icon-yonghu {
                    font-size: 22px;
                    // color: #fff;
                    color: #666;
                    cursor: pointer;
                }
            }

            .spCart {
                margin-left: 15px;

                .icon-shoppingcart {
                    font-size: 30px;
                    //color: #fff;
                    color: #666;
                    cursor: pointer;
                }
            }
        }

        //二级导航 shadowBox
        .shadowBox {
            width: 100%;
            height: 165px;
            background-color: #fff;
            position: absolute;
            top: 80px;
            left: 0;

            .shadow {
                //display: none;          
                width: $cententWidth;
                // background-color: pink;
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                // z-index: 999;

                .navList {
                    // overflow: hidden;
                    padding: 5px 10px 20px 80px;
                    display: flex;
                    justify-content: space-around;

                    .active {
                        opacity: 0.4;
                    }

                    li {
                        width: 140px;
                        height: 140px;
                        // background-color: aqua;
                        padding: 5px 5px 20px;
                        box-sizing: border-box;
                        text-align: center;
                        font-size: 12px;
                        color: #333;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;

                        img {
                            width: 100px;
                            height: 100px;
                        }
                    }
                }
            }
        }

        //二级导航 imgBox
        .imgBox {
            width: 100%;
            height: 300px;
            background-color: #fff;
            position: absolute;
            top: 80px;
            left: 0;

            .box {
                width: $cententWidth;
                height: 300px;
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                padding: 10px 0;
                box-sizing: border-box;
            }

            img {
                width: 100%;
                height: 100%;
            }
        }

    }
}

// ********** icon图标区 ******** //
.MZ_icon {
    width: 100%;
    // background-color: greenyellow;

    .icon {
        width: $cententWidth;
        height: 276px;
        background-color: #ffffff;
        margin: 0 auto;

        ul {
            display: flex;
            justify-content: space-around;

            li {
                text-align: center;
                overflow: hidden;
                cursor: pointer;

                &:hover {
                    opacity: 0.8;
                    border-top: 2px solid rgba($color: #FFAB15, $alpha: 0.8);
                }

                img {
                    margin-top: 45px;
                    width: 130px;
                    height: 130px;
                    margin-bottom: 10px;
                }

                h3 {
                    font-weight: 400;
                    font-size: 20px;
                    color: #333;
                    margin-bottom: 5px;
                }

                p {
                    font-size: 14px;
                    color: #999;
                }
            }
        }
    }
}

//********** 手机 phone  ******** //
.MZ_phone {
    width: 100%;
    height: 1562px;
    background-color: #f4f4f4;

    .top {
        width: 100%;
        height: 106px;
        background-color: #f4f4f4;
        font-size: 30px;
        text-align: center;
        padding: 50px 0 0 0;
        box-sizing: border-box;
    }

    .banner {
        width: 100%;
        height: 450px;
        border-bottom: 1px solid #eee;
        overflow: hidden;
        position: relative;
        margin-bottom: 10px;

        &:hover {
            opacity: 0.9;
            box-shadow: 0 0 3px 3px rgba($color: aqua, $alpha: 0.4);
        }

        img {
            position: absolute;
            width: auto;
            height: auto;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }

    .phoneList {
        width: $cententWidth;
        height: 995px;
        // background-color: aqua;
        margin: 0 auto;

        li {
            background-color: #ffffff;


            &:hover {
                box-shadow: 0 15px 30px rgba($color: gray, $alpha: 0.8);
            }
        }

        .ubox {
            width: $cententWidth;
            height: 610px;
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;

            li {
                float: left;
                width: 50%;
                text-align: center;
                position: relative;
                overflow: hidden;
                // width: 615px;
                // height: 610px;

                margin-right: 10px;

                &:nth-child(2) {
                    width: 615px;
                    height: 610px;
                    // background-color: pink;
                    margin-right: 0;
                }

                .goodsName {
                    margin-top: 58px;
                    margin-bottom: 2px;
                    font-size: 28px;
                    color: #333;
                }

                .goodsMsg {
                    font-size: 18px;
                    color: #333;
                    margin-bottom: 3px;
                }

                .goodsPrice {
                    font-size: 22px;
                    color: #c00;

                    .w {
                        font-size: 16px;
                    }
                }

                .goodsImg {
                    position: absolute;
                    left: 50%;
                    bottom: 0;
                    height: 460px;
                    margin-left: -250px;
                }

                .redBox {
                    width: 60px;
                    height: 60px;
                    background-color: #ff3149;
                    border-radius: 50%;
                    position: absolute;
                    top: 30px;
                    left: 30px;
                    line-height: 60px;
                    color: #fff;
                    font-size: 16px;
                    text-align: center;

                }
            }
        }

        .uli {
            width: $cententWidth;
            height: 375px;
            display: flex;
            justify-content: space-between;

            li {
                float: left;
                width: 25%;
                // height: 375px;
                margin-right: 10px;
                text-align: center;
                &:nth-last-child(1) {
                    margin-right: 0;
                }

                .goodsImg {
                    height: 230px;
                    margin-top: 30px;
                    margin-bottom: 10px;
                    &:hover {
                        transform-origin: 50% 50%;
                        transform: scale(1.1);
                    }
                }

                .goodsName {
                    color: #333;
                    font-size: 16px;
                    margin-bottom: 5px;
                }

                .goodsMsg {
                    color: #999;
                    font-size: 14px;
                    margin-bottom: 3px;
                }

                .goodsPrice {
                    font-size: 22px;
                    color: #c00;

                    .w {
                        font-size: 16px;
                    }
                }

            }
        }
    }
}

//********** Lipro 智能家居  ******** //
.MZ_Lipro {
    width: 100%;
    height: 1337px;
    background-color: #f4f4f4;

    .top {
        width: 100%;
        height: 106px;
        background-color: #f4f4f4;
        font-size: 30px;
        text-align: center;
        padding: 50px 0 0 0;
        box-sizing: border-box;
    }

    .banner {
        width: 100%;
        height: 450px;
        border-bottom: 1px solid #eee;
        overflow: hidden;
        position: relative;
        margin-bottom: 10px;

        &:hover {
            opacity: 0.9;
            box-shadow: 0 0 3px 3px rgba($color: aqua, $alpha: 0.4);
        }

        img {
            position: absolute;
            width: auto;
            height: auto;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }

    .LiproList {
        width: $cententWidth;
        height: 1146px;
        // background-color: aqua;
        margin: 0 auto;

        ul {
            display: flex;
            flex-wrap: wrap;

            li {
                width: 303px;
                height: 375px;
                background-color: #ffffff;
                margin-right: 9px;
                margin-bottom: 10px;
                position: relative;
                text-align: center;

                overflow: hidden;

                &:hover img {
                    transform: scale(1.2);
                }

                &:nth-child(4n) {
                    margin-right: 0;
                }

                &:hover {
                    box-shadow: 0 15px 30px rgba($color: gray, $alpha: 0.8);
                }
            }

            .oLi1 {

                .goodsImg {
                    width: 100%;
                    height: 100%;
                    transition: 0.5s linear;
                }

                .msgBox {
                    width: 100%;
                    margin-top: 267px;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translate(-50%, -50%);

                    .goodsName {
                        color: #fff;
                        font-size: 21px;
                        font-weight: 700;
                        margin-bottom: 2px;
                    }

                    .goodsMsg {
                        font-size: 14px;
                        color: #fff;
                        margin-bottom: 2px;
                    }

                    .goodsPrice {
                        font-size: 24px;
                        font-weight: 700;
                        color: #ebce6b;
                    }
                }
            }

            .oli2 {
                .goodsImg {
                    height: 230px;
                    margin-top: 30px;
                    margin-bottom: 2px;
                }

                .goodsName {
                    color: #333;
                    font-size: 16px;
                    margin-bottom: 2px;
                }

                .goodsMsg {
                    color: #999;
                    font-size: 14px;
                    margin-bottom: 3px;
                }

                .goodsPrice {
                    font-size: 22px;
                    color: #c00;

                    .w {
                        font-size: 16px;
                    }
                }
            }


        }
    }

}

//********** 魅族声学other  ******** //
.MZ_other {
    width: 100%;
    height: 1712px;
    background-color: #f4f4f4;

    .top {
        width: 100%;
        height: 106px;
        background-color: #f4f4f4;
        font-size: 30px;
        text-align: center;
        padding: 50px 0 0 0;
        box-sizing: border-box;
    }

    .banner {
        width: 100%;
        height: 450px;
        border-bottom: 1px solid #eee;
        overflow: hidden;
        position: relative;
        margin-bottom: 10px;

        &:hover {
            opacity: 0.9;
            box-shadow: 0 0 3px 3px rgba($color: aqua, $alpha: 0.4);
        }

        img {
            position: absolute;
            width: auto;
            height: auto;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }

    .otherList {
        width: $cententWidth;
        height: 1146px;
        // background-color: aqua;
        margin: 0 auto;

        ul {
            display: flex;
            flex-wrap: wrap;

            li {
                width: 303px;
                height: 375px;
                background-color: #ffffff;
                margin-right: 9px;
                margin-bottom: 10px;
                position: relative;
                text-align: center;

                overflow: hidden;

                &:hover img {
                    transform: scale(1.2);
                }

                &:nth-child(4n) {
                    margin-right: 0;
                }

                &:hover {
                    box-shadow: 0 15px 30px rgba($color: gray, $alpha: 0.8);
                }
            }

            .oLi1 {

                .goodsImg {
                    width: 100%;
                    height: 100%;
                    transition: 0.5s linear;
                }

                .msgBox {
                    width: 100%;
                    margin-top: 267px;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translate(-50%, -50%);

                    .goodsName {
                        color: #fff;
                        font-size: 21px;
                        font-weight: 700;
                        margin-bottom: 2px;
                    }

                    .goodsMsg {
                        font-size: 14px;
                        color: #fff;
                        margin-bottom: 2px;
                    }

                    .goodsPrice {
                        font-size: 24px;
                        font-weight: 700;
                        color: #ebce6b;
                    }
                }
            }

            .oli2 {
                .goodsImg {
                    height: 230px;
                    margin-top: 30px;
                    margin-bottom: 2px;
                }

                .goodsName {
                    color: #333;
                    font-size: 16px;
                    margin-bottom: 2px;
                }

                .goodsMsg {
                    color: #999;
                    font-size: 14px;
                    margin-bottom: 3px;
                }

                .goodsPrice {
                    font-size: 22px;
                    color: #c00;

                    .w {
                        font-size: 16px;
                    }
                }

                .redBox {
                    width: 60px;
                    height: 60px;
                    background-color: #ff64a6;
                    border-radius: 50%;
                    position: absolute;
                    top: 30px;
                    left: 30px;
                    line-height: 60px;
                    color: #fff;
                    font-size: 16px;
                    text-align: center;

                }
            }


        }
    }

}

//********** 手机配件fittings  ******** //
.MZ_fittings {
    width: 100%;
    height: 1762px;
    background-color: #f4f4f4;
    // margin-bottom: 50px;

    .top {
        width: 100%;
        height: 106px;
        background-color: #f4f4f4;
        font-size: 30px;
        text-align: center;
        padding: 50px 0 0 0;
        box-sizing: border-box;
    }

    .banner {
        width: 100%;
        height: 450px;
        border-bottom: 1px solid #eee;
        overflow: hidden;
        position: relative;
        margin-bottom: 10px;

        &:hover {
            opacity: 0.9;
            box-shadow: 0 0 3px 3px rgba($color: aqua, $alpha: 0.4);
        }

        img {
            position: absolute;
            width: auto;
            height: auto;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }


    .fittList {
        width: $cententWidth;
        height: 1146px;
        // background-color: aqua;
        margin: 0 auto;

        ul {
            display: flex;
            flex-wrap: wrap;

            li {
                width: 303px;
                height: 375px;
                background-color: #ffffff;
                margin-right: 9px;
                margin-bottom: 10px;
                position: relative;
                text-align: center;

                overflow: hidden;

                &:hover img {
                    transform: scale(1.2);
                }

                &:nth-child(4n) {
                    margin-right: 0;
                }

                &:hover {
                    box-shadow: 0 15px 30px rgba($color: gray, $alpha: 0.8);
                }
            }

            .oLi1 {

                .goodsImg {
                    width: 100%;
                    height: 100%;
                    transition: 0.5s linear;
                }

                .msgBox {
                    width: 100%;
                    margin-top: 267px;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translate(-50%, -50%);

                    .goodsName {
                        color: #fff;
                        font-size: 21px;
                        font-weight: 700;
                        margin-bottom: 2px;
                    }

                    .goodsMsg {
                        font-size: 14px;
                        color: #fff;
                        margin-bottom: 2px;
                    }

                    .goodsPrice {
                        font-size: 24px;
                        font-weight: 700;
                        color: #ebce6b;
                    }
                }
            }

            .oli2 {
                .goodsImg {
                    height: 230px;
                    margin-top: 30px;
                    margin-bottom: 20px;
                }

                .goodsName {
                    color: #333;
                    font-size: 16px;
                    margin-bottom: 5px;
                }

                .goodsMsg {
                    color: #999;
                    font-size: 14px;
                    margin-bottom: 3px;
                }

                .goodsPrice {
                    font-size: 22px;
                    color: #c00;

                    .w {
                        font-size: 16px;
                    }
                }

                .redBox {
                    width: 60px;
                    height: 60px;
                    background-color: #ff64a6;
                    border-radius: 50%;
                    position: absolute;
                    top: 30px;
                    left: 30px;
                    line-height: 60px;
                    color: #fff;
                    font-size: 16px;
                    text-align: center;

                }
            }


        }
    }


}

//********** 尾部footer  ******** //
.MZ_footer {
    width: 100%;
    background-color: #ffffff;

    .footer {
        width: $cententWidth;
        height: 248px;
        // background-color: greenyellow;
        margin: 0 auto;

        .top {
            align-items: center;
            height: 144px;
            border-bottom: 1px solid #eeeeee;
            display: flex;

            ul {
                width: 76%;
                text-align: center;

                li {
                    width: 15%;
                    float: left;

                    img {
                        width: 50px;
                        margin: 0 auto;
                    }
                }

                p {
                    line-height: 27px;
                    font-size: 12px;
                    color: #666;
                }

            }

            .box {
                width: 24%;
                text-align: right;

                span {
                    color: #999;
                    font-size: 12px;
                    line-height: 30px;
                }

                p {
                    color: #008cff;
                    font-size: 25px;
                    font-weight: 400;
                    margin-top: -6px;
                    line-height: 40px;
                }

                .sbox {
                    height: 30px;
                    padding: 0 16px;
                    border-radius: 20px;
                    background: #008cff;
                    text-align: center;
                    line-height: 30px;
                    font-size: 14px;
                    color: #fff;
                    display: inline-block;
                    cursor: pointer;
                }
            }

        }

        .bottom {
            height: 104px;
            display: flex;
            align-items: center;

            .left {
                width: 76%;

                ul {
                    margin-top: 30px;

                    // margin-bottom: 30px;
                    li {
                        padding-right: 15px;
                        border-right: 1px solid #d6d6d6;
                        float: left;
                        height: 18px;
                        margin-right: 15px;

                        &:last-child {
                            border-right: 0;
                        }

                        a {
                            line-height: 18px;
                            color: #999;
                            font-size: 12px;

                            &:hover {
                                color: #008cff
                            }
                        }
                    }
                }

                p {
                    margin-top: 60px;
                    line-height: 27px;
                    font-size: 12px;
                    color: #999;

                    a {
                        margin: 0 3px;
                        color: #999;
                        font-size: 12px;

                        &:hover {
                            color: #008cff
                        }

                        i {
                            display: inline-block;
                            position: relative;
                            top: 4px;
                            height: 18px;
                            width: 25px;

                            &:nth-of-type(1) {
                                background: url(../images/incnt_1.png) no-repeat center;
                            }

                            &:nth-of-type(2) {
                                background: url(../images/incnt_2.png) no-repeat center;
                            }

                            &:hover {
                                color: red;
                            }
                        }
                    }
                }
            }

            .right {
                width: 24%;

                .icon {
                    // background: aqua;
                    // margin-left: 100px;
                    float: right;
                    display: flex;


                    span {
                        margin-left: 15px;
                        display: inline-block;
                        width: 32px;
                        height: 32px;
                        overflow: hidden;
                    }

                    .i1 {
                        background: url(../images/base.png) no-repeat;
                        background-position: -218px -91px;

                        &:hover {
                            background-position: -218px -137px;
                        }
                    }

                    .ibox {
                        position: relative;

                        &:hover .QR {
                            display: block;
                        }

                        .i2 {
                            background: url(../images/base.png) no-repeat;
                            background-position: -302px -91px;

                            &:hover {
                                background-position: -302px -137px;
                            }
                        }

                        .QR {
                            width: 150PX;
                            height: 150px;
                            position: absolute;
                            bottom: 35px;
                            left: -43px;
                            display: none;

                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }

                    }

                    .i3 {
                        background: url(../images/base.png) no-repeat;
                        background-position: -344px -91px;

                        &:hover {
                            background-position: -344px -137px;
                        }
                    }



                }
            }
        }
    }
}

//********** 回到顶部gobox  ******** //
.gobox {

    // display: none;
    .email {
        width: 44px;
        height: 44px;
        position: fixed;
        right: 15px;
        bottom: 98px;
        background: url(../images/email.png) no-repeat center rgba($color: #b4b4b4, $alpha: 0.8);
        z-index: 990;
        cursor: pointer;

    }

    .gotop {
        width: 44px;
        height: 44px;
        position: fixed;
        right: 15px;
        bottom: 50px;
        background: url(../images/gotop.png) no-repeat center rgba($color: #b4b4b4, $alpha: 0.8);
        z-index: 990;
        cursor: pointer;
    }
}